/**
 * Created by zhang_yao_wu1993 on 15/4/21.
 */
$(document).ready(function () {

});

function frameHeightAdapter() {
    var iframe = document.getElementById("iframe");
    var subWeb = document.frames ? document.frames["iframepage"].document : iframe.contentDocument;
    if (iframe != null && subWeb != null) {
        iframe.height = subWeb.body.scrollHeight;
    }
}